handle comutations in subdirs of the git repository
authorJoey Hess <joeyh@joeyh.name>
Tue, 25 Feb 2025 19:08:38 +0000 (15:08 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 25 Feb 2025 19:08:38 +0000 (15:08 -0400)
commit2e1fe1620e14f0f8681b2872b696645e6e00156d
tree5a8e29be494ebc60f2ae23791f9e3c6f6264876f
parentce05a92ee7db4b260003ffe40083d49dbfd0a635
handle comutations in subdirs of the git repository

Eg, a computation might be run in "foo/" and refer to "../bar" as an
input or output.

So, the subdir is part of the computation state.

Also, prevent input or output of files that are outside the git
repository. Of course, the program can access any file on disk if it
wants to; this is just a guard against mistakes. And it may also be
useful if the program comunicates with something less trusted than it,
eg a container image, so input/output files communicated by that are not
the source of security problems.
Remote/Compute.hs
doc/design/compute_special_remote_interface.mdwn
doc/git-annex-addcomputed.mdwn
doc/git-annex-recompute.mdwn